package com.tmt.jackson.impl;

/**
 * Created by ThreeManTeam on 2017/7/3.
 */
/*
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.reflect.MethodSignature;
import org.springframework.stereotype.Component;

import java.lang.reflect.Method;*/

/**
 * Created by ThreeManTeam on 2017/6/30.
 */
/*
@Aspect
@Component
@Slf4j
public class IgnorePropertyAspect {

    @Around("@annotation(ignoreProperties)")
    public Object around(ProceedingJoinPoint pjp, IgnoreProperties ignoreProperties) throws Throwable {
        //先直接调用目标方法。
        Object returnVal = pjp.proceed();

        //将返回结果进行处理。
        try {
            IFilterPropertyHandler filterPropertyHandler = new JavassistFilterPropertyHandler();
            Method method = ((MethodSignature) pjp.getSignature()).getMethod();
            filterPropertyHandler.filterProperties(method);
        } catch (Exception e) {
            log.error(e.getMessage());
            e.printStackTrace();
        }

        return returnVal;
    }
}
*/
